<%@page import="cn.school.mybatis.pojo.Student"%>
<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
 <%
 //pageConetxt->rquest->session->application
    String p[]={"pingguo","例子","taozi","西红柿"};
    session.setAttribute("fruit", p);
    Student stu=new Student();
 	stu.setSname("老吴");
 	stu.setId(1004);
 	stu.setBirthday(new java.util.Date(80,1,1));
 	pageContext.setAttribute("student", stu);
    request.setAttribute("msg","我们开学4个月了");
 %>
 <h1>
 <!-- request.getAttribute("msg") -->
   ${msg},${a.b.c.d.f}
 </h1>
 <h1 style="color:red">
 	${student.id},${student['sname']}<br/>
 	<%-- ${student.xingbie} --%>
 </h1>
 <h1>
 <%-- ${requestScope.fruit[1]} --%>
 ${sessionScope.fruit[1]}
 </h1>
</body>
</html>